package com.vegetable.modules.entity.baseData;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品规格
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ProductSpec对象", description="商品规格")
public class ProductSpec extends BaseEntity {

    @ApiModelProperty(value = "商品id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long producerId;

    @ApiModelProperty(value = "规格名")
    private String name;


}
